package com.zhb.lkd.pojos.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 机器和策略关联表
 * </p>
 *
 * @author haibin
 * @since 2024-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_vm_policy")
@ApiModel(value="VmPolicy对象", description="机器和策略关联表")
public class VmPolicy implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "售货机id")
    private Long vmId;

    @ApiModelProperty(value = "售货机编号")
    private String innerCode;

    @ApiModelProperty(value = "策略id")
    private Integer policyId;

    @ApiModelProperty(value = "策略名称")
    private String policyName;

    @ApiModelProperty(value = "折扣")
    private Integer discount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
